#include <iostream>
using namespace std;

class Complex
{   private:
        int a, b;
    public:
        void setData(int x, int y)
        {
            a = x;
            b = y;
        }
        void getData()
        {
            cout << a << " " << b << endl;
        }
        Complex operator-()
        {
            Complex tmp;
            tmp.a = -a;
            tmp.b = -b;
            return tmp;
        }
};

int main()
{
    Complex c1, c2;
    c1.setData(5, 7);
    // c2 = c1.operator-();
    c2 = -c1;
    c2.getData();
}